$(document).ready(function(){

	var currentPlayer = <?php echo $this->session->userdata('currentPlayer') ?>;
	var nextPlayer = 0;
	var hand = [];
	var opponentHand = [];
	var status = '';
	var deckCount = 0;
	var workSpace = [];
	var trump = [];
	var attackCount = 0;
	var option = 0;					// accept or attack
	var fScore = 0;
	var sScore = 0;
	var shuffle = 0;
	var opponentShuffle = 0;
	var prompt = '';
	
	function ajaxt(){
		$.ajax({
		url:"demo_test.txt",
		data:,
		async:"",
		success:function(result){
			$("#div1").html(result);
		}});
	}
	
	createShuffle();
	
	function reset(){
		currentPlayer = 0;
		nextPlayer = 0;
		hand = [];
		opponentHand = [];
		status = '';
		deckCount = 0;
		workSpace = [];
		trump = [];
		attackCount = 0;
		option = 0;
		fScore = 0;
		sScore = 0;
		shuffle = 0;
		opponentShuffle = 0;
		prompt = '';
	}
	
	function durak() {
		
	}

	function createShuffle(){
		if(opponentShuffle==1)
			$(".shuffleBtn").html('<a href="<?php echo site_url(/"start/") ?>"><button class="btn btn-warning btn-xs marg">Shuffle</button></a>');
			
	}

	
	$("p").click(function(){
		$(this).hide();
	});
});